package com.ruoyi.business.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * course对象 course
 *
 * @author 吴倩芸
 * @date 2023-03-04
 */
@Data
@TableName("course")
public class Course extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 课程名
     */
    @Excel(name = "课程名")
    @TableField(value = "name")
    private String name;

    /**
     * 课程详情
     */
    @Excel(name = "课程详情")
    @TableField(value = "detail")
    private String detail;

    /**
     * 课程图片
     */
    @Excel(name = "课程图片")
    @TableField(value = "course_image")
    private String courseImage;

    @TableField(exist = false)
    private String courseImageUrl;

    /**
     * 课程状态
     */
    @Excel(name = "课程状态")
    @TableField(value = "status")
    private String status;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 排序
     */
    @Excel(name = "排序")
    @TableField(value = "sort")
    private String sort;

    /**
     * 教练id
     */
    @Excel(name = "教练id")
    @TableField(value = "train_man_id")
    private Long trainManId;


}
